package com.hgk.common.common.util;

import android.content.Context;
import android.widget.TextView;

public class UiSettingUtil {
	
	/**
	 * 设置页面标题
	 *
	 * @param title
	 */
	
	public static void setActivityTitle(TextView tv,Object title){
		if(title == null){
			return;
		}

		if(title.equals(0)){
			return;
		}

		if(title instanceof Integer){
			tv.setText((Integer)title);
		}else if(title instanceof String){
			tv.setText((String)title);
		}
	}
	public static String getResouceString(Context context,int id){
		return context.getResources().getString(id);
	}
}
